package com.wedo.mall.entity;

import java.util.List;

/**
 * Created by Lawrence on 2017/8/7.
 */

public class Order {
    /**
     * id : 141
     * user_id : 44
     * order_sn : 1702210000006182
     * total : 11.00
     * carriage : 0.00
     * status : 2
     * express_type : 0
     * buyer_message :
     * add_time : 1487660306
     * goodsList : [{"goods_id":"12","goods_image":"/Static/Public/Shop/images/commodity.png","goods_name":"啊啊啊啊啊啊","unit_price":"11.00","price":"11.00","goods_number":"1","attr_list":""}]
     * goods_number : 1
     */

    public String id;
    public String user_id;
    public String order_sn;
    public String total;
    public String carriage;
    public String status;
    public String express_type;
    public String buyer_message;
    public String add_time;
    public int goods_number;
    public List<GoodsList> goodsList;
    public int pay_method;

    public boolean offline() {
        return pay_method == 1;
    }

    public boolean online() {
        return pay_method == 0;
    }
}
